<script setup lang="ts">
import { ref, onMounted } from "vue";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import $timeFormat from "@/utils/timeFormat";

const getBuildingStatistics = () => {
  dayjs.extend(utc);
  let a = $timeFormat("2024-11-28T07:58:50.420Z");
  let b = dayjs("2024-11-28 16:52:38").toJSON();
  console.log("a:", a, "b", b);
};

onMounted(() => {
  getBuildingStatistics();
});

defineOptions({
  name: "Welcome"
});
</script>

<template>
  <h1>{{ $timeFormat("2024-11-28T08:52:38.909Z") }}</h1>
</template>
